package ${package_pojo};

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class ${pojoName} implements Serializable {

	private static final long serialVersionUID = 1L;
	
	<#list columns as item>
	/**
	* ${(item.columnComment)?default("")}
	*/
	private ${item.columnType} ${item.columnName};  
	
	</#list>  
	
	<#list columns as item>  
	public void ${item.setMethodName}(${item.columnType} ${item.columnName}) {
		this.${item.columnName} = ${item.columnName};
	}  
	
	public ${item.columnType} ${item.getMethodName}() {
		return this.${item.columnName};
	}  
	</#list> 

	/**
	* 返回MAP形式封装的参数
	*/
	public Map<String, Object> toParam() {
		Map<String, Object> map = new HashMap<String, Object>();
		<#list columns as item>  
		map.put("${item.columnName}", ${item.columnName});
		</#list> 
		return map;
	}
	
    @Override
    public String toString() {
        return "${pojoName}:[" + <#list columns as item>"${item.columnName}=" + ${item.columnName}<#if item_index != columns?size - 1> + "," + </#if></#list> + "]";
    }
}